

//获取本地存储信息
export function getUserMessage(id) {
    let userId = id;
    if (localStorage.getItem("user") == null) {
        // console.log("没有登录")
        return userId
    } else {
        const result = localStorage.getItem("user")
        const res = JSON.parse(result)
        userId = res.id
        // console.log('登陆成功')
        return userId;
    }

}

